<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品退</title>
<#include "/WEB-INF/content/module-edit.html">
<link href="${request.contextPath}/res/kindeditor/themes/default/default.css" rel="stylesheet" />
<script charset="utf-8" src="${request.contextPath}/res/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="${request.contextPath}/res/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
var pos=[
 	{"id":"0","text":"道乐"},
	{"id":"1","text":"微信"},
	{"id":"2","text":"支付宝"},
	{"id":"3","text":"银联"}
];
$(function() {
  	$("#amount").numberbox({min:0,precision:2});
  	$("#channels").combobox({
  		valueField : 'id',
  		textField : 'text',
  		editable:false,
  		data:pos
  	});
 });
</script>
<style>
.input-width{
	width: 95%;
}
</style>
 
</head>
<body class="easyui-layout">
	<div region="north" id="toolbar" style="background-color: #eee; padding: 5px; overflow: hidden;" border="false">
		<@auth code="order:refund:create">
			<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-add" style="border: 1px solid #ccc" onclick="javascript:save()">保存</a>
		</@auth>
		<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-edit" style="border: 1px solid #ccc" onclick="javascript:cancel()">关闭</a>
	</div>
	<div region="center">
		<div id="p" class="easyui-panel" style="background: #fafafa; padding: 10px" fit="true" toolbar="#toolbar">
			<form id="form" method="post">
				<input type="hidden" id="_id" value=""/>
				<table class="form" cellspacing="0" style="width: 100%">
					<tbody style="border: 1px solid #ccc">
						<tr>
							<td class="label">订单编号:</td>
							<td><input id="oid" name="oid" class="easyui-validatebox" value="${object.oid!}" required="true" style="width:90%;" readonly="readonly"/></td>
							<td class="validate">*</td>
							<td class="label">退款/货金额:</td>
							<td><input id="amount" name="amount" value="${object.totalprice!}" class="easyui-validatebox" required="true"/></td>
							<td class="validate">*</td>
						</tr>											
						<tr>
							<td class="label">退款/货原因：</td>
							<td colspan="4"><textarea style="width:90%;" class="easyui-validatebox" required="true" id="reason" name="reason" required="true"></textarea>
							<td class="validate"></td>
						</tr>	
					</tbody>
				</table>
			</form>
		</div>
	</div>
</body>
</html>